<?php
	/*
	 * AJAX call to delete a content filter from the database.
	 * Filters are stored in the table "filerwords".
	 *
	 * Variables:
	 *   id (int) : record ID in the database
	 *
	 * Returns: string (ok or error)
	 *
	 */

	$sql = mysql_query("DELETE FROM filterwords WHERE fwID=".round($_GET["id"])." LIMIT 1");
	if(mysql_error() != ""){
		echo mysql_error();
	}else{
		echo "ok";
	}
	exit;
?>